package com.zrf.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * Leave entity. @author MyEclipse Persistence Tools
 */

public class Leave implements java.io.Serializable {

	// Fields

	private Integer lid;
	private Person person;
	private Integer ltime;
	private Integer lstate;
	private Set flows = new HashSet(0);

	// Constructors

	/** default constructor */
	public Leave() {
	}

	public Leave(Person person, Integer ltime, Integer lstate) {
		this.person = person;
		this.ltime = ltime;
		this.lstate = lstate;
	}
	
	/** full constructor */
	public Leave(Person person, Integer ltime, Integer lstate, Set flows) {
		this.person = person;
		this.ltime = ltime;
		this.lstate = lstate;
		this.flows = flows;
	}

	// Property accessors

	public Integer getLid() {
		return this.lid;
	}

	public void setLid(Integer lid) {
		this.lid = lid;
	}

	public Person getPerson() {
		return this.person;
	}

	public void setPerson(Person person) {
		this.person = person;
	}

	public Integer getLtime() {
		return this.ltime;
	}

	public void setLtime(Integer ltime) {
		this.ltime = ltime;
	}

	public Integer getLstate() {
		return this.lstate;
	}

	public void setLstate(Integer lstate) {
		this.lstate = lstate;
	}

	public Set getFlows() {
		return this.flows;
	}

	public void setFlows(Set flows) {
		this.flows = flows;
	}

}